﻿<%@ Page Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="IvoiceDetail.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.IvoiceDetail"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">发票详情</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                采购单：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOrderName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                采购医疗机构：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtHospitalName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                配送时间：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTimeFrom" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                                    MaxLength="10" Width="62px"></asp:TextBox>-<asp:TextBox ID="txtTimeTo" runat="server"
                                        onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" MaxLength="10" Width="62px"></asp:TextBox>
                            </td>
                            <td rowspan="3">
                                <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="btn" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                产品名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProdcutname" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                规格型号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutLookc" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                材质：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                            </td>
                            
                        </tr>
                        <tr>
                            <td align="right">
                                生产企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                审核状态：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlstatus" runat="server">
                                    <asp:ListItem Value="">全部</asp:ListItem>
                                    <asp:ListItem Value="0">未提交</asp:ListItem>
                                    <asp:ListItem Value="1">已提交</asp:ListItem>
                                    <%--<asp:ListItem>审核不通过</asp:ListItem>--%>
                                </asp:DropDownList>
                            </td>
                            <td align="right">拼音码：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtpinyincode" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label Text="项目：" ID="lblProjectid" runat="server" />
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlProjectid" runat="server">
                                    <asp:ListItem Value="0002">2014年内蒙古自治区网上高值医用耗材阳光采购项目</asp:ListItem>
                                    <asp:ListItem Value="0001">2012年内蒙古自治区网上医用耗材采购项目</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwInvoiceAdd" class="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <%--  <asp:BoundField DataField="OrderName" HeaderText="采购单名称" ReadOnly="true" />--%>
           <%-- <asp:TemplateField HeaderText="采购单名称">
                <ItemTemplate>
                    <a href='InvoiceAdd.aspx?InvoiceSerialID=<%# Eval("InvoiceSerialID") %>&hID=<%#Eval("HospitalID")%>&checkstatus=<%#Eval("AuditStatus")%>'>
                        <asp:Label runat="server" ID="lblReturnName" Text='<%# Eval("OrderName") %>' ToolTip="点击进入相应的发票"></asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:BoundField DataField="OrderName" HeaderText="采购单名称" ReadOnly="true" />
            <%--<asp:BoundField DataField="TotalAmount" HeaderText="采购总额" ReadOnly="true" DataFormatString="{0:F2}" />--%>
            <asp:BoundField DataField="HospitalName" HeaderText="采购医疗机构" ReadOnly="true" />
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" ReadOnly="true" />
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" ReadOnly="true" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" ReadOnly="true" />
            <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            <asp:BoundField DataField="Unit" HeaderText="单位" ReadOnly="true" />
            <%--<asp:BoundField DataField="Price" HeaderText="采购价格" ReadOnly="true" DataFormatString="{0:N4}" />--%>
            <asp:TemplateField HeaderText="采购价">
                <ItemTemplate>
                    <asp:Label ID="lblPrice" runat="server" Text='<%#HZ.DrugTrade.Web.Function.FormPrice(Eval("ProjectID"), Eval("Price")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="PurchaseCount" HeaderText="采购数量" ReadOnly="true" />
            <asp:BoundField DataField="Dis_DistributeCount" HeaderText="批配送量" ReadOnly="true" />
            <asp:BoundField DataField="Dis_WarehouseCount" HeaderText="批入库量" ReadOnly="true" />
            <asp:BoundField DataField="BatchRecordID" HeaderText="批号" ReadOnly="true" />
            <asp:BoundField DataField="DistributeTime" HeaderText="配送时间" ReadOnly="true" DataFormatString="{0:yyyy-MM-dd}" />
            <asp:TemplateField HeaderText="审核状态">
                <ItemTemplate>
                    <%# Eval("AuditStatus").ToString() == "0" ? "未提交":"已提交"%>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listctrl">
<hz:HzButton ID="btnExport" runat="server" Text="导出Excel" CssClass="btn" ToolTip="导出Excel"
                        OnClick="btnExport_Click" /></div>

    <div class="listip">
        <ul>
            <li>提示:<span>此列表为已经开过发票的采购单。</span></li>
        </ul>
    </div>
    <div class="listctrl">
    </div>
</asp:Content>
